import request from '@/utils/requestUtil'

export function fetchRushIndex(params) {
	return request({
		method: 'GET',
		url: '/qg/index',
		params: params
	})
}

export function fetchRushList(params) {
	return request({
		method: 'GET',
		url: '/qg/goodsList',
		params: params
	})
}
export function fetchrushDetail(id) {
	return request({
		method: 'GET',
		url: `/qg/goodsDetail?id=${id}`
	})
}

export function createOrderRush(id) {
	return request({
		method: 'GET',
		url: `/qg/createOrder?id=${id}`
	})
}

